package lac.serviceflow.cfg;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("serviceflow")
public class ServiceFlow implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6123635450849576978L;
	@XStreamAsAttribute
	private String id;
	@XStreamAsAttribute
	private String name;
	@XStreamAsAttribute
	private String describe;
	@XStreamImplicit(itemFieldName="param")
	private List<FlowParam> flowParams = new ArrayList<FlowParam>();
	@XStreamImplicit(itemFieldName="method")
	private List<FlowMethod> flowMethods = new ArrayList<FlowMethod>();
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public List<FlowMethod> getFlowMethods() {
		return flowMethods;
	}
	public void setFlowMethods(List<FlowMethod> flowMethods) {
		this.flowMethods = flowMethods;
	}
	public List<FlowParam> getFlowParams() {
		return flowParams;
	}
	public void setFlowParams(List<FlowParam> flowParams) {
		this.flowParams = flowParams;
	}
	
}
